﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class SellerSpecificationValueInfoConfig : EntityTypeConfiguration<SellerSpecificationValueInfo>
    {
        public SellerSpecificationValueInfoConfig()
        {
            ToTable("Himall_SellerSpecificationValues");
            Property(item => item.Value).HasColumnType("varchar").HasMaxLength(200);
          
            HasRequired(x => x.SpecificationValueInfo).WithMany(x => x.SellerSpecificationValueInfo).HasForeignKey(x => x.ValueId);
        }
    }
}
